import 'package:json_annotation/json_annotation.dart';
import 'user_task_order_list.dart';

part 'user_task_order_response.g.dart';

@JsonSerializable()
class UserTaskOrderResponse {
  final int count;
  @JsonKey(name: 'userTaskOrderListDtos', defaultValue: [])
  final List<UserTaskOrderList> userTaskOrderListDtos;

  UserTaskOrderResponse({
    required this.count,
    required this.userTaskOrderListDtos,
  });

  factory UserTaskOrderResponse.fromJson(Map<String, dynamic> json) =>
      _$UserTaskOrderResponseFromJson(json);

  Map<String, dynamic> toJson() => _$UserTaskOrderResponseToJson(this);
}